// 抽象类

export {};

abstract class Animal {
  eat(food: string): void {
    console.log(`呼噜呼噜的吃:${food}`);
  }
  abstract run(distance: number): void;
}

class Dog extends Animal {
  run(distance: number): void {
    throw new Error("Method not implemented.");
  }
}

const d = new Dog();

d.eat("的说法");
d.run(100);
